package repo

import (
	"gorm.io/gorm"
	"sync"
)

type CloudRepo *Query

var lock = sync.Once{} //互斥锁

func NewMediaRepo(db *gorm.DB) CloudRepo {
	lock.Do(func() {
		SetDefault(db)
	})
	return Q
}
